from likeshop_api_project.base.myBase import Tools


class list_cart_model(Tools):
    path = '/api/cart/lists'

    # 发送查询任务接口
    def list_cart_action(self,hd):

        list_cart = self.huihua.get(url=self.hosturl + self.path, headers=hd)

        return list_cart.json()



from likeshop_api_project.api.login_api import login_model
import requests

# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(account='17612345678', pwd='admin123', client='4')
# print(msg)
# tokena = msg['data']['token']
# hd = {
#     'token': tokena
# }
# print(hd)
#
# list_cart = list_cart_model(huihua=s)
# msg = list_cart.list_cart_action(hd=hd)
# print(msg)
